﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace ChipSharp
{
    class Water : Unmovable
    {
        public Water(int x, int y) 
            : base(x, y)
        {

        }

        public override void Draw(System.Drawing.Graphics graph, System.Drawing.Rectangle rect)
        {
            Pen pen = new Pen(Color.Black);
            SolidBrush brush = new SolidBrush(Color.Cyan);

            graph.DrawRectangle(pen, rect);
            Rectangle fillRect = new Rectangle(rect.X + 1, rect.Y + 1,
                rect.X + rect.Width - 1, rect.Y + rect.Height - 1);
            graph.FillRectangle(brush, fillRect);

            base.Draw(graph, rect);
        }
    }
}
